#ifndef LINK_H
#define LINK_H

struct TopicLink
{
	int fd;   
	char topic[16];
	struct TopicLink *next;
};
typedef struct TopicLink tLink;

void init_link();
void add_link(int fd, const char *t);
void send_message(const char *topic, const char *msg, int MsgLen);
void delete_link(int fd);
void update_device_time(int sig);

#endif

